package com.lch.dubbospi;

import org.apache.dubbo.common.extension.ExtensionLoader;
import org.apache.dubbo.rpc.Protocol;

/**
 * @author: liuchenhui
 * @create: 2020-02-23 12:11
 **/
public class Main {
    public static void main(String[] args) {
        Protocol service = ExtensionLoader.getExtensionLoader(Protocol.class).getExtension("myprotocol");
        int defaultPort = service.getDefaultPort();
        System.out.printf(defaultPort + "");
    }
}

